package design.patterns.observer;

import java.util.Observable;

/**
 * Created with IntelliJ IDEA.
 * User: nuno-rafael-figueiredo
 * Date: 04-03-2014
 * Time: 14:05
 */
public class Subject extends Observable {
    public void setChangedAndNotifyObservers(Object arg) {
        setChanged();
        notifyObservers(arg);
    }

    public void setChangedAndNotifyObservers() {
        setChanged();
        notifyObservers();
    }
}
